<%@ page language="java" import="java.util.*,util.WebConstants, orm.TeachingPlanBaseInfo, util.Utility" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <TITLE>听力语言康复教学教师备课系统</TITLE>
    <meta http-equiv=Content-Type content="text/html; charset=utf-8">
	<meta content="MSHTML 6.00.6000.16705" name=GENERATOR>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link href="reference/images/Beike.css" rel="stylesheet" type="text/css">
	<script src="<%=request.getContextPath() %>/reference/WebCalendar.js" type="text/javascript"></script>

  </head>

<script language="javascript">
   function Change1()
	{
		
	    td2.background="reference/images/bq_022.gif"
		td1.background="reference/images/bq_011.gif"
		div1.style.display='';
		div2.style.display='none';
		form2.action="TPManagement/MyTeachingPlanFunction?func=myTP";
	}
	function Change2()
	{
	    td1.background="reference/images/bq_022.gif"
		td2.background="reference/images/bq_011.gif"
		div2.style.display='';
		div1.style.display='none';
		form2.action="TPManagement/MyTeachingPlanFunction?func=collectionTP";
	}
	function deleteRedirect(hdTPID)
	{
		if(confirm("您确定要删除吗？")){
			form2.action="TPManagement/MyTeachingPlanFunction?func=delete&divflag=01&hdTPID="+hdTPID;
		}
	}
	function editRedirect(hdTPID)
	{
		form2.action="TPManagement/MyTeachingPlanFunction?func=edit&hdTPID="+hdTPID;
	}
	function shareRedirect(hdTPID)
	{
		if(confirm("您确定要共享吗？")){
			form2.action="TPManagement/MyTeachingPlanFunction?func=share&hdTPID="+hdTPID;
		}
	}

	function StartPage(){
		form2.action="TPManagement/MyTeachingPlanFunction?func=paging&sub=start&divflag=01";
	}
	
	function PreviousPage() {
		form2.action="TPManagement/MyTeachingPlanFunction?func=paging&sub=front&divflag=01";
	}
	function NextPage() {
		form2.action="TPManagement/MyTeachingPlanFunction?func=paging&sub=next&divflag=01";
	}
	function LastPage() {
		form2.action="TPManagement/MyTeachingPlanFunction?func=paging&sub=last&divflag=01";
	}
	function SearchPage() {
		form2.action="TPManagement/MyTeachingPlanFunction?func=searchPage&divflag=01";
	}
	
	function deleteCollectionRedirect(colTPID)
	{
		if(confirm("您确定要删除吗？")){
			form2.action="TPManagement/MyTeachingPlanFunction?func=deleteCollection&divflag=02&colTPID="+colTPID;
		}
	}
	function editCollectionRedirect(colTPID)
	{
		form2.action="TPManagement/MyTeachingPlanFunction?func=editCollection&colTPID="+colTPID;
	}

	function collectionStartPage(){
		form2.action="TPManagement/MyTeachingPlanFunction?func=pagingCollection&sub=start&divflag=02";
	}
	
	function collectionPreviousPage() {
		form2.action="TPManagement/MyTeachingPlanFunction?func=pagingCollection&sub=front&divflag=02";
	}
	function collectionNextPage() {
		form2.action="TPManagement/MyTeachingPlanFunction?func=pagingCollection&sub=next&divflag=02";
	}
	function collectionLastPage() {
		form2.action="TPManagement/MyTeachingPlanFunction?func=pagingCollection&sub=last&divflag=02";
	}
	function collectionSearchPage() {
		form2.action="TPManagement/MyTeachingPlanFunction?func=searchPageCollection&divflag=02";
	}
	function SearchCondition() {
		form2.action="TPManagement/MyTeachingPlanFunction?func=SearchCondition&divflag=01";
	}
	function ColSearchCondition() {
		form2.action="TPManagement/MyTeachingPlanFunction?func=ColSearchCondition&divflag=02";
	}
	window.onload = function(){
		td2.background="reference/images/bq_022.gif"
		td1.background="reference/images/bq_011.gif"
		div1.style.display='';
		div2.style.display='none';
		form2.action="TPManagement/MyTeachingPlanFunction?func=myTP";
		
		if('<c:out value="${param.divflag}" />'=='02'){
			td1.background="reference/images/bq_022.gif"
			td2.background="reference/images/bq_011.gif"
			div2.style.display='';
			div1.style.display='none';
			form2.action="TPManagement/MyTeachingPlanFunction?func=collectionTP";
		}
	}
</script>
<BODY>
 <form action="" method="post" name="form2" id="form2">
 	<input type="hidden" id="HDPageNo" name="HDPageNo" value=<%=request.getAttribute("pageNo") %>> 
	<input type="hidden" id="HDtotalPage" name="HDtotalPage" value=<%=request.getAttribute("totalPage") %>>
	<input type="hidden" id="pageNoColl" name="pageNoColl" value=<%=request.getAttribute("pageNoColl") %>> 
	<input type="hidden" id="totalPageColl" name="totalPageColl" value=<%=request.getAttribute("totalPageColl") %>>  
  	
  	
  	
  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td align="left"><table width="300" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="left"><table width="150" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td id="td1"  height="38" background="reference/images/bq_011.gif" align="center" onClick="Change1()" style="cursor:hand" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="30" align="center"><img src="reference/images/sm_05.gif" width="18" height="18" /></td>
                  <td align="left" class="title"><strong>我编写的教案</strong></td>
                </tr>
              </table></td>
              </tr>
          </table></td>
          <td align="left"><table width="150" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="150"  height="38" align="center" background="reference/images/bq_022.gif" id="td2" style="cursor:hand" onClick="Change2()" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="30" align="center"><img src="reference/images/sm_05.gif" alt="" width="18" height="18" /></td>
                  <td align="left" class="title"><strong>我收藏的教案</strong></td>
                </tr>
              </table></td>
              </tr>
          </table></td>
          </tr>
      </table>
      
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="7" background="reference/images/table_1_07.gif"></td>
            <td>
            <div id="div1">
            
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#A4C9EC">
				    <tr>
				      <td><table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
				        <tr>
				          <td width="20%" align="right" valign="middle" bgcolor="#FFFFFF">教案类别：</td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF">
				          	<select name="TPType" class="boxCopy" id="select5" style="width:100%; height:19px;">
				          		<option value="">全部</option>
						        <option value="1" <c:if test="${param.TPType==1}">selected</c:if>>个别教案</option>
						        <option value="2" <c:if test="${param.TPType==2}">selected</c:if>>集体教案</option>
					        </select>
				          </td>
				          <td width="20%" align="right" valign="middle" bgcolor="#FFFFFF">教案属性：</td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF">
				          	<select name="TPProperty" class="boxCopy" id="select5" style="width:100%; height:19px;">
						        <option value="">全部</option>
						        <option value="1" <c:if test="${param.TPProperty==1}">selected</c:if>>标准教案</option>
						        <option value="2" <c:if test="${param.TPProperty==2}">selected</c:if>>自定义教案</option>
					        </select>
				          </td>
				          <td width="20%" align="right" valign="middle" bgcolor="#FFFFFF">适用年龄：</td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF">
				          	<select name="AppropriateAge" class="boxCopy" id="select5" style="width:100%; height:19px;">
				          		<option value="">全部</option>
					        	<option value="1" <c:if test="${param.AppropriateAge==1}">selected</c:if>>0～1</option>
					        	<option value="2" <c:if test="${param.AppropriateAge==2}">selected</c:if>>1～2</option>
					        	<option value="3" <c:if test="${param.AppropriateAge==3}">selected</c:if>>2～3</option>
					        	<option value="4" <c:if test="${param.AppropriateAge==4}">selected</c:if>>3～4</option>
					        	<option value="5" <c:if test="${param.AppropriateAge==5}">selected</c:if>>4～5</option>
					        	<option value="6" <c:if test="${param.AppropriateAge==6}">selected</c:if>>5～6</option>
					        </select>
				          </td>
				         </tr>
				         <tr>
				          <td width="17%" align="right" valign="middle" bgcolor="#FFFFFF">月主题教学名称：</td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF">
				          	<input name="MonthThemeName" type="text" class="boxCopy" id="MonthThemeName" value="<c:out value="${param.MonthThemeName}"/>" style="width:100px; height:19px;">
				          </td>
				        
				          <td width="17%" align="right" valign="middle" bgcolor="#FFFFFF">周主题教学名称：</td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF">
				          	<input name="WeekThemeName" type="text" class="boxCopy" id="WeekThemeName" value="<c:out value="${param.WeekThemeName}"/>" style="width:100px; height:19px;">
				          </td>
				          <td width="17%" align="right" valign="middle" bgcolor="#FFFFFF">发展领域：</td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF">
				          	<select name="DevelopmentDomain" class="boxCopy" id="DevelopmentDomain" style="width:100%; height:19px;">
						        <option value="">全部</option>
						        <option value="1" <c:if test="${param.DevelopmentDomain==1}">selected</c:if>>健康</option>
				                <option value="2" <c:if test="${param.DevelopmentDomain==2}">selected</c:if>>语言</option>
				                <option value="3" <c:if test="${param.DevelopmentDomain==3}">selected</c:if>>科学</option>
				                <option value="4" <c:if test="${param.DevelopmentDomain==4}">selected</c:if>>艺术</option>
				                <option value="5" <c:if test="${param.DevelopmentDomain==5}">selected</c:if>>社会</option>
					        </select>
				          </td>
				         </tr>
				         <tr>
				          <td width="17%" align="right" valign="middle" bgcolor="#FFFFFF">强化领域：</td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF">
					        <select name="AggrandizementDomain" class="boxCopy" id="sltAggrandizementDomain" style="width:100%; height:19px;">
								<option value="">全部</option>
						        <option value="1" <c:if test="${param.AggrandizementDomain==1}">selected</c:if>>听觉训练</option>
				                <option value="2" <c:if test="${param.AggrandizementDomain==2}">selected</c:if>>发音练习</option>
				                <option value="3" <c:if test="${param.AggrandizementDomain==3}">selected</c:if>>语言学习</option>
				                <option value="4" <c:if test="${param.AggrandizementDomain==4}">selected</c:if>>交际训练</option>
				                <option value="5" <c:if test="${param.AggrandizementDomain==5}">selected</c:if>>认知强化</option>
				                <option value="6" <c:if test="${param.AggrandizementDomain==6}">selected</c:if>>言语矫治</option>
				                <option value="7" <c:if test="${param.AggrandizementDomain==7}">selected</c:if>>其他</option>
							</select>
					        
				          </td>
				          <td width="17%" align="right" valign="middle" bgcolor="#FFFFFF">活动类别：</td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF">
				          	<select name="ActivityType" class="boxCopy" id="select5" style="width:100%; height:19px;">
					        	<option value="">全部</option>
						        <option value="1" <c:if test="${param.ActivityType==1}">selected</c:if>>准备性</option>
				                <option value="2" <c:if test="${param.ActivityType==2}">selected</c:if>>解决性</option>
				                <option value="3" <c:if test="${param.ActivityType==3}">selected</c:if>>延伸性</option>
				                <option value="4" <c:if test="${param.ActivityType==4}">selected</c:if>>总结性</option>
					        </select>
				          </td>
				         
				          <td width="17%" align="right" valign="middle" bgcolor="#FFFFFF">教案制定年度：</td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF">
				          	<input value="<c:out value="${param.TPYear}"/>" class="boxCopy" onClick="SelectDate(this,'yyyy')" style="width:100px; height:19px;" type="text" readonly name="TPYear" id="TPYear" size="12"/>年
				          </td>
				          </tr>
				         <tr>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF"></td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF"></td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF"></td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF"></td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF"></td>
				          <td  valign="right" bgcolor="#FFFFFF">
				          	
				          	<input type="image" height="20" width="44" border="0" onclick="SearchCondition()" src="reference/images/button_see.gif" name="btnJump" />
				          </td>
				           
				        </tr>
				      </table></td>
				    </tr>
				</table>
              <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" borderColorDark=#ffffff bgColor=#A0C8FA borderColorLight=#89d4e9 >
                <tr>
                  <td><table name="tbData" id="tbData" width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfe5f5">
                    <tr>
                      <td width="25%" height="25" align="center" bgcolor="#a4c9ec"><B>活动名称</B></td>
                      <td width="15%" height="25" align="center" bgcolor="#a4c9ec"><B>撰写人</B></td>
                      <td width="10%" height="25" align="center" bgcolor="#a4c9ec"><B>模板次数</B></td>
                      <td width="20%" height="25" align="center" bgcolor="#a4c9ec"><B><strong>教案类别</strong></B></td>
                      <td width="10%" height="25" align="center" bgcolor="#a4c9ec"><B>删除</B></td>
                      <td width="10%" height="25" align="center" bgcolor="#a4c9ec"><B>共享</B></td>
                      <td width="10%" height="25" align="center" bgcolor="#a4c9ec"><strong>编辑</strong></td>
                      
                    </tr>
                    <%
	                    TeachingPlanBaseInfo tpbi = null;
	                    ArrayList<TeachingPlanBaseInfo> al = (ArrayList<TeachingPlanBaseInfo>)request.getAttribute("TPList");
	                   	for (int i = 0; i < al.size(); i++) {
	                   		tpbi = al.get(i);
	                   		String  tpID = tpbi.getTpID();
	                   		
	                   
	                   		
                   	%>
	                    <tr>
	                      <td width="25%" height="30" align="center" bgcolor="#FFFFFF"><%=tpbi.getActivityName() %></td>
	                      
	                      
	                      <td width="15%" height="30" align="center" bgcolor="#FFFFFF"><%=tpbi.getTeacherName() %></td>
	                      <td width="10%" height="30" align="center" bgcolor="#FFFFFF"><%=tpbi.getEditingTimes() %></td>
	                      
						<%
                      	if (tpbi.getTpType() == Utility.TEACHINGPLAN_TYPE_INDIVIDUAL) {
                      		%>
                      		<td width="20%" height="30" align="center" bgcolor="#FFFFFF">个别教案</td>
                      		<%
                      	} else {
                      		%>
                      		<td width="20%" height="30" align="center" bgcolor="#FFFFFF">集体教案</td>
                      		<%
                      	}
                      	%>
                      	
                   		  <td width="10%" height="30" align="center" bgcolor="#FFFFFF">
                   		  
                   		  	<input type="image" onclick="deleteRedirect('<%=tpID %>')" height=20 name=imgDelete<%=i %> alt="删除" value=<%=tpbi.getTpID()%> 
                   		  		src="reference/images/del.gif" width=20 border=0>
               		  	  </td>
	                      <td width="10%" height="30" align="center" bgcolor="#FFFFFF">
	                      	<a href="#">
	                      		<input type="image" onclick="shareRedirect('<%=tpID %>')" height=20 alt="共享" value=<%=tpbi.getTpID()%> src="reference/images/gongxiang.gif" width=20 border=0>
                      		</A>
                   		  </td>
	                      <td width="10%" height="30" align="center" bgcolor="#FFFFFF">
	                      	
                      		<input type="image" onclick="editRedirect('<%=tpID %>')" src="reference/images/bianji.gif" value=<%=tpbi.getTpID()%> alt="编辑" width="16" height="16" border="0">
                   		  </td>
	                      
	                    </tr>
                    	<%
                    }
                    %>
                  </table></td>
                </tr>
              </table>
              <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                <tr>
                  <td bgcolor="#e6f0f8"><TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
                      <TBODY>
                        <TR>
                        	<TD align=right><%=request.getAttribute("pageNo") %>
                        	<FONT color=#c0c0c0>/<%=request.getAttribute("totalPage") %>页 &nbsp;
                        	<input name="btnStart" type="submit" value="首页 &nbsp;" onclick="StartPage()">
	                        <input name="btnFront"  id="btnFront" type="submit" value="前页 &nbsp;" onclick="PreviousPage()">
	                        <input name="btnNext" id="btnNext" type="submit" value="后页 &nbsp;" onclick="NextPage()">
	                        <input name="btnLast" id="btnLast" type="submit" value="尾页 &nbsp;" onclick="LastPage()"> 
                            </FONT>第
                            <input class="boxCopy" maxlength="5" value="<%=request.getAttribute("pageNo") %>" size="5" name="PageNo" id="PageNo"/>
                        	页</td>
                      		<td align="right" width="20">
                      		<input type="image" height="16" width="18" onclick="SearchPage()" src="reference/images/button_go.gif" name="btnJump" />
							</TD>
                        </TR>
                      </TBODY>
                  </TABLE></td>
                </tr>
              </table>
            </div>
    <script language="javascript">
		if (document.getElementById("HDPageNo").value == 1) {
			document.getElementById("btnFront").disabled = 'true';
		} 
		
		if (document.getElementById("HDPageNo").value == <%=request.getAttribute("totalPage") %>) {
			document.getElementById("btnNext").disabled = 'true';
		}
		if (document.getElementById("PageNo").value > <%=request.getAttribute("totalPage") %> && <%=request.getAttribute("totalPage") %> != 0 || document.getElementById("PageNo").value < 1) {
			alert("超出合理页面范围，请重新填写");
			
		}
		
	</script>
            
            <div id="div2"  style="display:none">
            <div>
            
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#A4C9EC">
				    <tr>
				      <td><table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
				        <tr>
				          <td width="20%" align="right" valign="middle" bgcolor="#FFFFFF">教案类别：</td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF">
				          	<select name="ColTPType" class="boxCopy" id="select5" style="width:100%; height:19px;">
				          		<option value="">全部</option>
						        <option value="1" <c:if test="${param.ColTPType==1}">selected</c:if>>个别教案</option>
						        <option value="2" <c:if test="${param.ColTPType==2}">selected</c:if>>集体教案</option>
					        </select>
				          </td>
				          <td width="20%" align="right" valign="middle" bgcolor="#FFFFFF">教案属性：</td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF">
				          	<select name="ColTPProperty" class="boxCopy" id="select5" style="width:100%; height:19px;">
						        <option value="">全部</option>
						        <option value="1" <c:if test="${param.ColTPProperty==1}">selected</c:if>>标准教案</option>
						        <option value="2" <c:if test="${param.ColTPProperty==2}">selected</c:if>>自定义教案</option>
					        </select>
				          </td>
				          <td width="20%" align="right" valign="middle" bgcolor="#FFFFFF">适用年龄：</td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF">
				          	<select name="ColAppropriateAge" class="boxCopy" id="select5" style="width:100%; height:19px;">
				          		<option value="">全部</option>
					        	<option value="1" <c:if test="${param.ColAppropriateAge==1}">selected</c:if>>0～1</option>
					        	<option value="2" <c:if test="${param.ColAppropriateAge==2}">selected</c:if>>1～2</option>
					        	<option value="3" <c:if test="${param.ColAppropriateAge==3}">selected</c:if>>2～3</option>
					        	<option value="4" <c:if test="${param.ColAppropriateAge==4}">selected</c:if>>3～4</option>
					        	<option value="5" <c:if test="${param.ColAppropriateAge==5}">selected</c:if>>4～5</option>
					        	<option value="6" <c:if test="${param.ColAppropriateAge==6}">selected</c:if>>5～6</option>
					        </select>
				          </td>
				         </tr>
				         <tr>
				          <td width="17%" align="right" valign="middle" bgcolor="#FFFFFF">月主题教学名称：</td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF">
				          	<input name="ColMonthThemeName" type="text" class="boxCopy" id="ColMonthThemeName" value="<c:out value="${param.ColMonthThemeName}"/>" style="width:100px; height:19px;">
				          </td>
				        
				          <td width="17%" align="right" valign="middle" bgcolor="#FFFFFF">周主题教学名称：</td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF">
				          	<input name="ColWeekThemeName" type="text" class="boxCopy" id="ColWeekThemeName" value="<c:out value="${param.ColWeekThemeName}"/>" style="width:100px; height:19px;">
				          </td>
				          <td width="17%" align="right" valign="middle" bgcolor="#FFFFFF">发展领域：</td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF">
				          	<select name="ColDevelopmentDomain" class="boxCopy" id="select5" style="width:100%; height:19px;">
						        <option value="">全部</option>
						        <option value="1" <c:if test="${param.ColDevelopmentDomain==1}">selected</c:if>>健康</option>
				                <option value="2" <c:if test="${param.ColDevelopmentDomain==2}">selected</c:if>>语言</option>
				                <option value="3" <c:if test="${param.ColDevelopmentDomain==3}">selected</c:if>>科学</option>
				                <option value="4" <c:if test="${param.ColDevelopmentDomain==4}">selected</c:if>>艺术</option>
				                <option value="5" <c:if test="${param.ColDevelopmentDomain==5}">selected</c:if>>社会</option>
					        </select>
				          </td>
				         </tr>
				         <tr>
				          <td width="17%" align="right" valign="middle" bgcolor="#FFFFFF">强化领域：</td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF">
					        <select name="ColAggrandizementDomain" class="boxCopy" id="sltAggrandizementDomain" style="width:100%; height:19px;">
								<option value="">全部</option>
						        <option value="1" <c:if test="${param.ColAggrandizementDomain==1}">selected</c:if>>听觉训练</option>
				                <option value="2" <c:if test="${param.ColAggrandizementDomain==2}">selected</c:if>>发音练习</option>
				                <option value="3" <c:if test="${param.ColAggrandizementDomain==3}">selected</c:if>>语言学习</option>
				                <option value="4" <c:if test="${param.ColAggrandizementDomain==4}">selected</c:if>>交际训练</option>
				                <option value="5" <c:if test="${param.ColAggrandizementDomain==5}">selected</c:if>>认知强化</option>
				                <option value="6" <c:if test="${param.ColAggrandizementDomain==6}">selected</c:if>>言语矫治</option>
				                <option value="7" <c:if test="${param.ColAggrandizementDomain==7}">selected</c:if>>其他</option>
							</select>
					        
				          </td>
				          <td width="17%" align="right" valign="middle" bgcolor="#FFFFFF">活动类别：</td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF">
				          	<select name="ColActivityType" class="boxCopy" id="select5" style="width:100%; height:19px;">
					        	<option value="">全部</option>
						        <option value="1" <c:if test="${param.ColActivityType==1}">selected</c:if>>准备性</option>
				                <option value="2" <c:if test="${param.ColActivityType==2}">selected</c:if>>解决性</option>
				                <option value="3" <c:if test="${param.ColActivityType==3}">selected</c:if>>延伸性</option>
				                <option value="4" <c:if test="${param.ColActivityType==4}">selected</c:if>>总结性</option>
					        </select>
				          </td>
				         
				          <td width="17%" align="right" valign="middle" bgcolor="#FFFFFF">教案制定年度：</td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF">
				          		<input value="<c:out value="${param.ColTPYear}"/>" class="boxCopy" onClick="SelectDate(this,'yyyy')" style="width:100px; height:19px;" type="text" readonly name="ColTPYear" id="ColTPYear" size="12"/>年
				          </td>
				          </tr>
				         <tr>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF"></td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF"></td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF"></td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF"></td>
				          <td width="20%" valign="middle" bgcolor="#FFFFFF"></td>
				          <td  valign="right" bgcolor="#FFFFFF">
				          	
				          	<input type="image" height="20" width="44" border="0" onclick="ColSearchCondition()" src="reference/images/button_see.gif" name="btnJump" />
				          </td>
				           
				        </tr>
				      </table></td>
				    </tr>
				</table>
            
		  <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" borderColorDark=#ffffff bgColor=#A0C8FA borderColorLight=#89d4e9 >
		    <tr>
		      <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfe5f5">
		          <tr>
		            
		            <td width="25%" height="25" align="center" bgcolor="#a4c9ec"><B>活动名称</B></td>
		            <td width="20%" height="25" align="center" bgcolor="#a4c9ec"><B>撰写人</B></td>
		            <td width="15%" height="25" align="center" bgcolor="#a4c9ec"><B>模板次数</B></td>
		            <td width="20%" height="25" align="center" bgcolor="#a4c9ec"><B><strong>类别</strong></B></td>
		            <td width="10%" height="25" align="center" bgcolor="#a4c9ec"><B>删除</B></td>
		            
		            <td width="10%" height="25" align="center" bgcolor="#a4c9ec"><strong>编辑</strong></td>
		            
		          </tr>
		          <%
			                   TeachingPlanBaseInfo coltpbi = null;
			                    ArrayList<TeachingPlanBaseInfo> coll = (ArrayList<TeachingPlanBaseInfo>)request.getAttribute("collectionTPList");
			                  
			                   	for (int i = 0; i < coll.size(); i++) {
			                   		coltpbi = coll.get(i);
			                   		String  tpID = coltpbi.getTpID();
		                   	%>
			                    <tr>
			                      <td width="25%" height="30" align="center" bgcolor="#FFFFFF"><%=coltpbi.getActivityName() %></td>
			                      <td width="20%" height="30" align="center" bgcolor="#FFFFFF"><%=coltpbi.getTeacherName() %></td>
			                      <td width="15%" height="30" align="center" bgcolor="#FFFFFF"><%=coltpbi.getEditingTimes() %></td>
								<%
		                      	if (coltpbi.getTpType() == Utility.TEACHINGPLAN_TYPE_INDIVIDUAL) {
		                      		%>
		                      		<td width="20%" height="30" align="center" bgcolor="#FFFFFF">个别教案</td>
		                      		<%
		                      	} else {
		                      		%>
		                      		<td width="20%" height="30" align="center" bgcolor="#FFFFFF">集体教案</td>
		                      		<%
		                      	}
		                      	%>
		                      	
		                   		  <td width="10%" height="30" align="center" bgcolor="#FFFFFF">
		                   		  	
		                   		  	<input type="image" onclick="deleteCollectionRedirect('<%=tpID %>')" height=20 name=imgDelete<%=i %> alt="删除" value=<%=coltpbi.getTpID()%> 
		                   		  		src="reference/images/del.gif" width=20 border=0>
		               		  	  </td>
			                      
			                      <td width="10%" height="30" align="center" bgcolor="#FFFFFF">
		                      		<input type="image" onclick="editCollectionRedirect('<%=tpID %>')" src="reference/images/bianji.gif" value=<%=coltpbi.getTpID()%> alt="编辑" width="16" height="16" border="0">
		                   		  </td>
			                      
			                    </tr>
		                    	<%
		                    }
		                    %>
		          
		      </table></td>
		    </tr>
		  </table>
		  <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
		                              <tr>
		                                <td bgcolor="#e6f0f8"><TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
		                                    <TBODY>
		                                      <TR>
		                                        <TD align=right><%=request.getAttribute("pageNoColl") %>
						                        	<FONT color=#c0c0c0>/<%=request.getAttribute("totalPageColl") %>页 &nbsp;
						                        	<input name="btnCollectionStart" id="btnCollectionStart" type="submit" value="首页 &nbsp;" onclick="collectionStartPage()">
							                        <input name="btnCollectionFront"  id="btnCollectionFront" type="submit" value="前页 &nbsp;" onclick="collectionPreviousPage()">
							                        <input name="btnCollectionNext" id="btnCollectionNext" type="submit" value="后页 &nbsp;" onclick="collectionNextPage()">
							                        <input name="btnCollectionLast" id="btnCollectionLast" type="submit" value="尾页 &nbsp;" onclick="collectionLastPage()"> 
						                            </FONT>第
						                            <input class="boxCopy" maxlength="5" value="<%=request.getAttribute("pageNoColl") %>" size="5" name="pageNoCollSel" id="pageNoCollSel"/>
						                        	页</td>
						                      		<td align="right" width="20">
						                      		<input type="image" height="16" width="18" onclick="collectionSearchPage()" src="reference/images/button_go.gif" name="collectionBtnJump" />
													</TD>
		                                      </TR>
		                                    </TBODY>
		                                </TABLE></td>
		                              </tr>
		                            </table>
							</div>
		              
		            </div></td>
		          </tr>
		        </table>
		        <table cellspacing="0" cellpadding="0" width="100%" border="0">
		          <tbody>
		            <tr>
		              <td width="7"><img height="22" alt="" 
		            src="reference/images/table_1_10.gif" width="7" /></td>
		              <td background="reference/images/table_1_11.gif" height="15"><img height="1" 
		            src="ydsjcx_files/spacer.gif" width="1" /></td>
		              <td width="8"><img height="22" alt="" src="reference/images/table_1_12.gif" 
		            width="8" /></td>
		            </tr>
		          </tbody>
		      </table></td>
		    </tr>
		  </table>
		</form>
		</BODY>
		</html>
<%
  		
  		if(request.getAttribute(WebConstants.DIVSHOW) != null ){
  			if(request.getAttribute(WebConstants.DIVSHOW).equals(WebConstants.DIV_COLL) ){
   %>
   <script language="javascript">
   		Change2();
	</script>
	<%    }
		} 
	%>
<script language="javascript">
		if (document.getElementById("pageNoColl").value == 1) {
			document.getElementById("btnCollectionFront").disabled = 'true';
		} 
		
		if (document.getElementById("pageNoColl").value == <%=request.getAttribute("totalPageColl") %>) {
			document.getElementById("btnCollectionNext").disabled = 'true';
		}
		
		if (document.getElementById("pageNoColl").value > <%=request.getAttribute("totalPageColl") %> && <%=request.getAttribute("totalPageColl") %> != 0 || document.getElementById("pageNoColl").value < 1) {
			alert("超出合理页面范围，请重新填写");
			
		}
		
	</script>
